import java.util.Scanner;

class Suite {

    private static Scanner clavier = new Scanner(System.in);

    public static void main(String[] args) {

        int debut;
        do {
            System.out.print("de (>= 1) ? ");
            debut = clavier.nextInt();
        } while (debut < 1);

        int fin;
        do {
            System.out.print("a (>= " + debut + ") ? ");
            fin = clavier.nextInt();
        } while (fin < debut);
        
        int counter=0;
		for(int i=debut; i<=fin; i++){
			
			int currentNumber = i;
			while(currentNumber>0){
				if(currentNumber % 3 == 0){
					currentNumber+=4;
				}
				else if(currentNumber % 4 == 0){
					currentNumber/=2;
				}
				else{
					currentNumber--;
				}
				
				counter++;
				if(currentNumber==0){
					System.out.println(i+ " -> " + counter);
					
					counter=0;
				}
			}
		}
        
        
        /*******************************************
         * Completez le programme a partir d'ici.
         *******************************************/


        /*******************************************
         * Ne rien modifier apres cette ligne.
         *******************************************/

    }
}
